package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.entity.RoleDO;
import com.winshare.saleAssistant.domain.query.RoleQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface RoleMapper {

    int saveRole(RoleDO roleDO);

    int updateRole(RoleDO roleDO);

    int deleteRole(RoleDO roleDO);

    int queryRoleCount(RoleQuery roleQuery);

    List<RoleDO> findRoleListByConditions(RoleQuery roleQuery);

    int countByRoleName(RoleDO roleDO);

    RoleDO queryByRole(RoleDO roleDO);

    RoleDO getRole(RoleDO roleDO);
}
